package com.wing.product.model.response;

import com.baomidou.mybatisplus.annotation.TableField;
import com.wing.mybatis.common.BaseEntity;
import com.wing.product.model.entity.WarehouseQualityTestingDetail;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.List;

@Schema(description="加工质检表")
@Data
@EqualsAndHashCode(callSuper=true)
public class WarehouseQualityTestingVO extends BaseEntity<WarehouseQualityTestingVO> {

    @Schema(description="质检编号")
    private String code;

    @Schema(description="生产产品id")
    private Long productId;

    @Schema(description="生产客户产品料号")
    private String customerProductCode;

    @Schema(description="生产线id")
    private Long productionLineId;

    @Schema(description="生产线名称")
    private String productionLineName;

    @Schema(description="车间id")
    private Long workshopId;

    @Schema(description="车间名称")
    private String workshopName;

    @Schema(description="加工报工记录id")
    private Long processingReportId;

    @Schema(description="加工报工记录编号")
    private String processingReportCode;

    @Schema(description="上机记录编号")
    private String computerPracticeCode;

    @Schema(description="所属生产订单id")
    private Long productionOrderId;

    @Schema(description="所属生产订单编号")
    private String productionOrderNumber;

    @TableField(value = "customer_id")
    @Schema(description="客户id")
    private Long customerId;

    @Schema(description="质检类型id")
    private Long qualityTestingTypeId;

    @Schema(description="质检类型名称")
    private String qualityTestingTypeName;

    @Schema(description="质检分类id")
    private Long qualityTestingCategoryId;

    @Schema(description="质检分类名称")
    private String qualityTestingCategoryName;

    @Schema(description="质检性质id")
    private Long qualityInspectionNatureId;

    @Schema(description="制令单编号")
    private String schedulingPlanDetailCode;

    @Schema(description="原始捆包号")
    private String userBundleCode;

    @Schema(description="规格码")
    private String productSpecCode;

    @Schema(description="上机时间")
    private LocalDateTime computerCreateTime;

    @Schema(description="生产计划编号")
    private String productionPlanCode;

    @Schema(description="制造令编号")
    private String productionPlanDetailCode;

    @Schema(description="客户名称")
    private String customerName;

    @Schema(description="质检性质id")
    private List<WarehouseQualityTestingDetail> warehouseQualityTestingDetailList;
}
